<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class Request | sweetphp</title>

	<script type="text/javascript" src="resources/combined.js?2802521858"></script>
	<script type="text/javascript" src="elementlist.js?3776638906"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="package-SweetPHP.html">SweetPHP<span></span></a>
						<ul>
				<li class="active"><a href="package-SweetPHP.System.html">System<span></span></a>
						<ul>
				<li class="active"><a href="package-SweetPHP.System.Core.html">Core</a>
						</li>
				<li><a href="package-SweetPHP.System.Test.html">Test</a>
						</li>
				<li><a href="package-SweetPHP.System.Utility.html">Utility</a>
						</li>
							</ul></li></ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-DB.html">DB</a></li>
				<li><a href="class-DBInterage.html">DBInterage</a></li>
				<li><a href="class-Defaults.html">Defaults</a></li>
				<li><a href="class-Entity.html">Entity</a></li>
				<li><a href="class-InputIOPost.html">InputIOPost</a></li>
				<li><a href="class-Object.html">Object</a></li>
				<li><a href="class-Param.html">Param</a></li>
				<li><a href="class-Post.html">Post</a></li>
				<li class="active"><a href="class-Request.html">Request</a></li>
				<li><a href="class-Routers.html">Routers</a></li>
				<li><a href="class-Verify.html">Verify</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-SweetPHP.System.Core.html" title="Summary of SweetPHP\System\Core"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Request</h1>


	<div class="description">
	SweetPHP<br />

<p><b>Request</b></p>

<p>Request, esta classe receba se extender pega os posts ($_POST) diretamente e
passa para o construtor as requisições e as direciona para a função e
método solicitado via AJAX Get e Post. <b>Exemplo:</b> Dentro do meu form tenho
o name que é o nome da Classe e o action que é a ação que será acessada,
construída sem a necessidade de ficar todas vez específicando o caminho.</p>
 &lt;form class="sweetForm" name="ClassName"&gt; &lt;input type="text" name="id"
value="1" /&gt; &lt;input type="submit" name="save" /&gt; &lt;input
type="submit" name="delete" /&gt; &lt;input class="sweetClick" type="submit"
name="action" value="Páge"
data-config="{'request':'ClassName','dataAction':'getpage2'}"/&gt; &lt;/form&gt;
<p>No sweetForm o envio será de todo o conteúdo do formulário</p>

<p>No sweetClick o envio será somente dos valores passados dentro do
data-config</p>

	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-SweetPHP.html">SweetPHP</a>\<a href="package-SweetPHP.System.html">System</a>\<a href="package-SweetPHP.System.Core.html">Core</a><br />

				<b>Copyright:</b>
				Copyright (c) 2013 - 2014, Ilines.<br />
				<b>Author:</b>
				sweetphp<br />
		<b>Located at</b> <a href="source-class-Request.html#3-145" title="Go to source code">libs/system/core/Request.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Request.html#31-35" title="Go to source code">__construct</a>( <span>mixed <var>$class</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$action</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$arguments</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="action" id="_action">

		<td class="attributes"><code>
			 public 
			method
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_action">#</a>
		<code><a href="source-class-Request.html#37-95" title="Go to source code">action</a>( )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>action</b></p>

<p>Após receber o type do método direciona a requisição para a Classe e
função (método) da classe desejada automáticamente.</p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>action</b></p>

<p>Após receber o type do método direciona a requisição para a Classe e
função (método) da classe desejada automáticamente.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>method</code><br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getMehodType" id="_getMehodType">

		<td class="attributes"><code>
			 protected 
			method
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getMehodType">#</a>
		<code><a href="source-class-Request.html#97-119" title="Go to source code">getMehodType</a>( <span>mixed <var>$class</var> = <span class="php-quote">&quot;&quot;</span></span>, <span>mixed <var>$method</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>getMehodType</b></p>

<p>Verifica o tipo do método da ação solicitada para construnção da
reflexção para acessar a função.</p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>getMehodType</b></p>

<p>Verifica o tipo do método da ação solicitada para construnção da
reflexção para acessar a função.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>method</code><br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getClass" id="_getClass">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getClass">#</a>
		<code><a href="source-class-Request.html#121-123" title="Go to source code">getClass</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="setClass" id="_setClass">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setClass">#</a>
		<code><a href="source-class-Request.html#125-127" title="Go to source code">setClass</a>( <span>mixed <var>$class</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="getAction" id="_getAction">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAction">#</a>
		<code><a href="source-class-Request.html#129-131" title="Go to source code">getAction</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="setAction" id="_setAction">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setAction">#</a>
		<code><a href="source-class-Request.html#133-135" title="Go to source code">setAction</a>( <span>mixed <var>$action</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="getArguments" id="_getArguments">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getArguments">#</a>
		<code><a href="source-class-Request.html#137-139" title="Go to source code">getArguments</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="setArguments" id="_setArguments">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setArguments">#</a>
		<code><a href="source-class-Request.html#141-143" title="Go to source code">setArguments</a>( <span>mixed <var>$arguments</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		sweetphp API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
